<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery-3.1.1.js"></script>
</head>

<body>
    <p><input name="chk" type="checkbox" value="滑雪" />滑雪</p>
    <p><input name="chk" type="checkbox" value="游泳" />游泳</p>
    <p><input name="chk" type="checkbox" value="爬山" />爬山</p>
    <p><input name="btn" type="button" value="选择"></p>
</body>

<script>
    $(function () {
        $('p').css('border', '2px dashed gray');
        $('input:last').on('click', function () {
            $('[type=checkbox]')[0].checked = true
            $('[type=checkbox]')[1].checked = true
            $('[type=checkbox]')[2].checked = true
        })
    })
</script>

</html>